/**
 * @author Mirko Bordjoski
 */	
package org.piwik.requests
{
	///import org.piwik.methods.UserSettingsMethods;
	public class UserSettings
	{
		
		public static const GET_RESOLUTION:String = "UserSettings.getResolution";
		public static const GET_CONFIGURATION:String = "UserSettings.getConfiguration";
		public static const GET_OS:String = "UserSettings.getOS";
		public static const GET_BROWSER:String = "UserSettings.getBrowser";
		
		
		public function UserSettings(){}
		
		
		public static function getResolution($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = UserSettings.GET_RESOLUTION;//UserSettingsMethods.GET_RESOLUTION;
			req.period = $period;
			req.requestType = "getResolution";
			
			return req;				
		}
		
		public static function getConfiguration($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = UserSettings.GET_CONFIGURATION;//UserSettingsMethods.GET_CONFIGURATION;
			req.period = $period;
			req.requestType = "getConfiguration";
			
			return req;				
		}
		
		public static function getOS($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = UserSettings.GET_OS;//UserSettingsMethods.GET_OS;
			req.period = $period;
			req.requestType = "getOS";
			
			return req;				
		}
		
		public static function getBrowser($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = UserSettings.GET_BROWSER;//UserSettingsMethods.GET_BROWSER;
			req.period = $period;
			req.requestType = "getBrowser";
			
			return req;				
		}

	}
}